package com.sdk.sdkconsumer.controller;

import com.sdk.sdkprovider.common.FluxRuntimeException;
import com.sdk.sdkprovider.config.TrackPlateModelProp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SdkController {

    @Autowired
    private TrackPlateModelProp trackPlateModelProp;

    @GetMapping("plate-models")
    public Object getPlateModels() {
        return trackPlateModelProp.getPlateModels();
    }

    @GetMapping("exception")
    public Object exception() {
        throw new FluxRuntimeException("exception");
    }
}
